#ifndef IMAGE_SLICE_H
#define IMAGE_SLICE_H 1

using namespace std;

class ImageSlice {

 public:
  ImageSlice();
  ImageSlice(int count);
  ImageSlice(int count, int index);
  ImageSlice(int count, double *data);
  ImageSlice(int count, double *data, int index);
  ~ImageSlice();

  void set(int n, double data) {
    this->data[n] = data;
  }

  double get(int n) {
    return this->data[n];
  }

  double operator[](int n) {
    return this->data[n];
  }

  int size() {
    return this->count;
  }

  int getIndex() {
    return this->index;
  }

 private:

  int count;
  int index;
  double *data;

};

#endif /* !IMAGE_SLICE_H */
